/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cn.ekuma.epos.swing.calc;

/**
 *
 * @author Administrator
 */
public class AddOP extends AbstractOP{

    @Override
    public String getOpStyle() {
        return OP_Add;
    }

    @Override
    public double calc(double inData) {
        return this.getNum()+inData;
    }

    @Override
    public CalcLogic clone() {
        AddOP temp=new AddOP();
        temp.num=this.num;
        temp.isDataOk=this.isDataOk;
        return temp;
    }
}
